using System.Collections.Generic;
using BCW;
using UnityEngine;

public class TestGPG : MonoBehaviour
{
	public void Load()
	{
		GpgWrapper.instance.LoadProducts(delegate(string x)
		{
			BCWDebug.Log(x, "GPG");
		});
	}

	public void Save()
	{
		GpgWrapper.instance.SaveProducts();
	}

	public void AddKeys()
	{
		List<string> list = new List<string>(MarketController.Instance.allProducts.Keys);
		string text = string.Empty;
		for (int i = 0; i < 5; i++)
		{
			string text2 = list.RandomElement();
			text = text + text2 + '\n';
			GpgWrapper.instance.AddForFutureSave(text2);
		}
		BCWDebug.LogWarning(text, "GPG");
	}
}
